package com.example.SpringBoot_demo.service.impl;

import com.example.SpringBoot_demo.bean.Tree;
import com.example.SpringBoot_demo.mapper.TreeMapper;
import com.example.SpringBoot_demo.service.ITreeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TreeServiceImpl implements ITreeService {

    @Autowired
    private TreeMapper treeMapper;

    @Override
    public List<Tree> getAllTree(String role) {
        return treeMapper.getAllTree(role);
    }
}